﻿@model sqlflashcards.Models.Flashcard
@{
    ViewBag.Title = "SQL Flashcards - Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>
</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <div id="flashcardStuff">
        <fieldset>
            <legend></legend>
            @Html.HiddenFor(model => model.sysID)
            <div class="editor-label">
                @Html.LabelFor(model => model.question)
            </div>
            <div class="editor-field">
                @Html.TextAreaFor(model => model.question)
                @Html.ValidationMessageFor(model => model.question)
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.answer)
            </div>
            <div class="editor-field">
                @Html.TextAreaFor(model => model.answer)
                @Html.ValidationMessageFor(model => model.answer)
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.source)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.source)
                @Html.ValidationMessageFor(model => model.source)
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.sourceLink)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.sourceLink)
                @Html.ValidationMessageFor(model => model.sourceLink)
            </div>
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>
        <div>
            @Html.ActionLink("Back to List", "Index")
        </div>
    </div>
}
